<div class="header">
	<ul>
		<?php foreach ($listMenu as $controller => $menu) :?>
		<?php
			$classActive 	= null;
			$item			= $menu['item'];
			$class			= $menu['class'];
			$controller		= (isset($menu['controler'])) ? $menu['controler'] : $controller;
			$link			= Yii::app()->createUrl($controller);
			if ($controller == 'logo') {
				$link	= Yii::app()->createUrl('site');
				$imgUrl = Util::baseTheme('images/andrey-fedorenko.gif');
				$mLink	= "<a href='{$link}'><img src='{$imgUrl}' alt='' title=''/></a>";
			}
			else 	if ($controller == $currController) {
				$class 	.= ' current';
				$mLink	= "<span><b class='icon'><span></span></b><span><a href='{$link}'>{$item}</a></span></span>";
			}
			else {
				$mLink	= "<a href='{$link}'><b class='icon'><span></span></b><span>{$item}</span></a>";
			}

		?>
		<li class="<?php echo $class;?>"> <?php echo $mLink;?></li>
		<?php endforeach;?>
	</ul>
</div>
